home *** CD-ROM | disk | FTP | other *** search
- CHECKEL - version 6.2
-
- This program, CHECKEL, will allow you to find the current errorlevel
- value from either the DOS prompt, or from within a batch file. I wrote
- it to enable me to find the current errorlevel without going through the
- endless wait for a long IF-THEN batch file. This current version works
- only with DOS versions 3.1, 3.2, 3.3, 4.0, 5.0, 6.0, and 6.2 (as far as I
- know) because those are the only DOS versions I still own and therefore
- have access to. It does NOT work with DR-DOS, because I don't have a copy,
- and therefore couldn't explore it.
-
- The Assembly source code is provided for those who would like to see how it
- works (no surprises at all). I used a couple of debuggers (and the
- PC-Magazine utility called "RAMVIEW") to trace through COMMAND.COM and find
- the address of the ERRORLEVEL flag, and then read this byte. I could find
- no pointers to this flag at all, (also no surprise, since it is specifically
- internal to each version of COMMAND.COM, and its batch file invocation
- routine).
-
- If you make some improvements on this program, or have some suggestions, please
- drop me a line and let me know. If I can do anything to make it more useful,
- I'll be glad to do so.
- Glenn Snow
- 999 East McKinley Avenue
- Mundelein, IL 60060
- (708) 566-4079 (voice)
-
- glenn.snow@sdorm.org
- or CompuServe 72317,2751
-